package grape.house.rest.client.estatelicence;

import grape.house.rest.estatelicence.vo.EstateLicenceVo;
import grape.house.service.estatelicence.po.EstateLicence;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by yangwei
 * Created at 2020/9/27
 */
@Component
@FeignClient(value = "grape-house")
public interface EstateLicenceClient {

    @GetMapping("/house/estatelicence/inner/getEstateLicenceById")
    public EstateLicence getEstateLicenceById(@RequestParam String id);


    @GetMapping("/house/estatelicence/inner/getEstateLicenceVoById")
    public EstateLicenceVo getEstateLicenceVoById(@RequestParam String id);

    
    @GetMapping("/house/estatelicence/inner/getEstateLicenceByEstateId")
    public List<EstateLicence> getEstateLicenceByEstateId(@RequestParam String estateId);

    @GetMapping("/house/estatelicence/inner/getEstateLicenceByIdAndPropertyTypeId")
    public List<EstateLicence> getEstateLicenceByIdAndPropertyTypeId(@RequestParam String estateId, @RequestParam String propertyTypeId);

}
